package org.pupil.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: rpc属性
 * @Author: pupil
 * @Date: 2024/07/20 下午 8:52
 */
@Component
@ConfigurationProperties(prefix = "rpc")
public class RpcProperties {

    private Integer port; // 端口
    private String serialization; // 序列化类型
    private String compression; // 压缩类型
    private String proxy; // 代理类型
    private String invoke; // 代理调用类型
    private RegistryProperties registry; // 注册中心类型

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getSerialization() {
        return serialization;
    }

    public void setSerialization(String serialization) {
        this.serialization = serialization;
    }

    public String getCompression() {
        return compression;
    }

    public void setCompression(String compression) {
        this.compression = compression;
    }

    public String getProxy() {
        return proxy;
    }

    public void setProxy(String proxy) {
        this.proxy = proxy;
    }

    public String getInvoke() {
        return invoke;
    }

    public void setInvoke(String invoke) {
        this.invoke = invoke;
    }

    public RegistryProperties getRegistry() {
        return registry;
    }

    public void setRegistry(RegistryProperties registry) {
        this.registry = registry;
    }
}
